home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
DATABASE
/
ACCSDBS.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-05-11
|
5KB
|
94 lines
@echo off
if NOT "%1"=="" goto itsok
echo *************************************************************************
echo * *
echo * Microsoft Access Companion Disk *
echo * Copyright (c) Microsoft Corporation 1993 *
echo * May 10, 1993 - Edition 1.0 *
echo * *
echo *************************************************************************
echo * *
echo * This batch program installs the companion disk to your C:\ACCESS *
echo * directory by default. If you wish to override this default *
echo * installation path, enter a new installation path on the command *
echo * line as shown below. *
echo * *
echo * REQUIREMENTS: 3.8 MB of free hard disk space *
echo * *
echo * USAGE: INSTALL [drive]:\[path] *
echo * *
echo * Where [drive] is the drive letter and [path] is the directory *
echo * into which the files will be installed. *
echo * *
echo * Example: INSTALL C:\ACCESS *
echo * *
echo *************************************************************************
echo .
ync Install into default directory (Yes/No/Cancel)?
if errorlevel=2 goto egress
if errorlevel=1 goto egress
if errorlevel=0 goto defaultinst
:DEFAULTINST
install c:\access
goto egress
:ITSOK
echo .
rem test for existence of the specified directory
if exist %1\nul goto testfile
echo creating %1
echo .
md %1
:TESTFILE
rem test for the existence of files with the same name
if exist %1\msforms.mdb goto exists
if exist %1\mssweets.mdb goto exists
if exist %1\mscms.mdb goto exists
if exist %1\msdirect.mdb goto exists
:COPYFILES
echo Decompressing Sample Applications...
echo .
echo msforms.mdb (file 1 of 4)
compress d msforms.md$ %1\msforms.mdb
echo mssweets.mdb (file 2 of 4)
compress d mssweets.md$ %1\mssweets.mdb
echo mscms.mdb (file 3 of 4)
compress d mscms.md$ %1\mscms.mdb
echo msdirect.mdb (file 4 of 4)
compress d msdirect.md$ %1\msdirect.mdb
echo .
echo **************************************************************************
echo * *
echo * INSTALLATION COMPLETE *
echo * *
echo * Please load Microsoft Access to view your sample database files. *
echo * *
echo * MSFORMS.MDB .... sample data entry forms *
echo * MSSWEETS.MDB ... sample database for small businesses *
echo * MSCMS.MDB ...... sample Contact Management application *
echo * MSDIRECT.MDB ... directory of Access products & services *
echo * *
echo * The sample databases contained on this 'companion disk' have been *
echo * provided purely as an aid to help users learn more about Microsoft *
echo * Access and are therefore provided 'as is'. Microsoft is unable to *
echo * provide support for these samples due to the nature of their design. *
echo * *
echo **************************************************************************
goto egress
:EXISTS
echo ************************ WARNING! *****************************
echo One or more of the sample files already exists in the specified
echo directory. Overwriting will replace the existing files with new
echo copies from the Microsoft Access Companion Disk.
echo ***************************************************************
echo .
ync Overwrite existing files (Yes/No/Cancel)?
if errorlevel=2 goto egress
if errorlevel=1 goto egress
if errorlevel=0 goto copyfiles
:EGRESS